package com.cy.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.cy.pojo.RotationChart;
@Mapper
public interface RotationchartDao {
//根据轮播图id（现在为1）查找数据库中关于轮播图选项 存储为轮播图的实体对象
//返回值为实体类的对象 通过注解交给spring进行数据库访问1
	@Select("select * from rotation_Chart where lid=#{id}")
	static
	RotationChart selectRo(String id) {
		return null;
	}
	@Select("select COUNT(*) from rotation_Chart where lid=#{id}")
	int corotationChar(String id);
	
	@Update("update rotation_Chart set time=#{time} where lid=#{lid}")
	void updaterotationchart(RotationChart ro); 

}
